package com.example.demo.web.listener;


import org.apache.shiro.session.Session;
import org.apache.shiro.session.SessionListenerAdapter;

/**
 * {@link org.apache.shiro.session.Session}中的回话监听器,监听会话的动作
 * <p>@author Henry.Y</p>
 * <p>@date 2019-09-10</p>
 */
public class MySessionListener2 extends SessionListenerAdapter{

	public void onStart(Session session){
		System.out.println("通过继承SessionListenerAdapter监听会话创建:"+session.getId());
	}
}
